package Thread_;

public class Th {
    public static void main(String[] args) {
        Cat cat=new Cat();
        Poxy poxy = new Poxy(cat);
        poxy.start();
        ;
    }
}
class Poxy implements Runnable{
   private Runnable taget=null;

    @Override
    public void run() {
        if (taget!=null){
            taget.run();
        }
    }
    public Poxy(Runnable poxy) {
        this.taget = poxy;
    }

    public void start(){
        start0();
    }
    public void start0(){
        run();
    }
}
class Animal{};
class Cat extends Animal implements Runnable{
    @Override
    public void run() {
        System.out.println("喵喵喵");
    }
}
